mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Update list of case-sensitive HTML attributes. Patch by Niels Leenheer (rakaz) <niels.leenheer@gmail.com>. r+sr=dbaron b=356936
This commit is contained in:
parent
721ec53db1
commit
c025bd0c31
@ -2362,12 +2362,54 @@ CSSParserImpl::ParseAttributeSelector(PRInt32& aDataMask,
|
||||
if (nameSpaceID == kNameSpaceID_None ||
|
||||
nameSpaceID == kNameSpaceID_XHTML) {
|
||||
static const char* caseSensitiveHTMLAttribute[] = {
|
||||
// list based on http://www.w3.org/TR/REC-html40/index/attributes.html
|
||||
"abbr", "alt", "label",
|
||||
"prompt", "standby", "summary",
|
||||
"title", "class", "archive",
|
||||
"cite", "datetime", "href",
|
||||
"name", nsnull
|
||||
// list based on http://www.w3.org/TR/html4/
|
||||
"abbr",
|
||||
"action",
|
||||
"alt",
|
||||
"archive",
|
||||
"background",
|
||||
"cite",
|
||||
"class",
|
||||
"classid",
|
||||
"code",
|
||||
"codebase",
|
||||
"content",
|
||||
"data",
|
||||
"datetime",
|
||||
"for",
|
||||
"headers",
|
||||
"href",
|
||||
"id",
|
||||
"label",
|
||||
"longdesc",
|
||||
"name",
|
||||
"object",
|
||||
"onblur",
|
||||
"onchange",
|
||||
"ondblclick",
|
||||
"onfocus",
|
||||
"onkeydown",
|
||||
"onkeypress",
|
||||
"onkeyup",
|
||||
"onload",
|
||||
"onmousedown",
|
||||
"onmousemove",
|
||||
"onmouseout",
|
||||
"onmouseup",
|
||||
"onreset",
|
||||
"onselect",
|
||||
"onsubmit",
|
||||
"onunload",
|
||||
"profile",
|
||||
"prompt",
|
||||
"scheme",
|
||||
"src",
|
||||
"standby",
|
||||
"summary",
|
||||
"title",
|
||||
"usemap",
|
||||
"value",
|
||||
nsnull
|
||||
};
|
||||
short i = 0;
|
||||
const char* htmlAttr;
|
||||
|
Loading…
Reference in New Issue
Block a user