Skip to main content

TEXT_ESCAPES

Constant TEXT_ESCAPES 

Source
pub const TEXT_ESCAPES: &[(char, &str)];
Expand description

The attributes whose value is a URL the BROWSER will follow, fetch or submit to.

These are the positions where a string stops being data and becomes a navigation the browser performs on the author’s behalf — so they are the positions where a scheme matters. Held as a list for the same reason BOOLEAN_ATTRIBUTES is: HTML keys the rule on the attribute NAME, and guessing from the value is how disabled="false" disabled a control. The characters that mean something to an HTML parser in TEXT content.

★ THREE, NOT FOUR — the quote is not one of them. A " between tags is an ordinary character; only inside an attribute value, where a quote is what ENDS the value, does it have to go.