mirror of
https://github.com/servo/servo.git
synced 2025-07-10 08:53:41 +01:00
The URL spec recently changed and the variour "mixins" interfaces are gone, this commit updates our code and WPT accordingly. The new expected failures related to HTMLAnchorElement and HTMLAreaElement's attributes are due to their moving to the HTMLHyperLinkElementUtils interface, which is not anymore in a separate <script class=untested> element.
64 lines
997 B
JavaScript
64 lines
997 B
JavaScript
// Up-to-date as of 2013-04-19.
|
|
var textElements = {
|
|
a: {
|
|
// Conforming
|
|
target: "string",
|
|
download: "string",
|
|
ping: "urls",
|
|
rel: "string",
|
|
relList: {type: "tokenlist", domAttrName: "rel"},
|
|
hreflang: "string",
|
|
type: "string",
|
|
|
|
// HTMLHyperlinkElementUtils
|
|
href: "url",
|
|
|
|
// Obsolete
|
|
coords: "string",
|
|
charset: "string",
|
|
name: "string",
|
|
rev: "string",
|
|
shape: "string",
|
|
},
|
|
em: {},
|
|
strong: {},
|
|
small: {},
|
|
s: {},
|
|
cite: {},
|
|
q: {
|
|
cite: "url",
|
|
},
|
|
dfn: {},
|
|
abbr: {},
|
|
data: {
|
|
value: "string",
|
|
},
|
|
time: {
|
|
dateTime: "string",
|
|
},
|
|
code: {},
|
|
// Opera 11.50 doesn't allow unquoted "var" here, although ES5 does and
|
|
// other browsers support it.
|
|
"var": {},
|
|
samp: {},
|
|
kbd: {},
|
|
sub: {},
|
|
sup: {},
|
|
i: {},
|
|
b: {},
|
|
u: {},
|
|
mark: {},
|
|
ruby: {},
|
|
rt: {},
|
|
rp: {},
|
|
bdi: {},
|
|
bdo: {},
|
|
span: {},
|
|
br: {
|
|
// Obsolete
|
|
clear: "string",
|
|
},
|
|
wbr: {},
|
|
};
|
|
|
|
mergeElements(textElements);
|