servo/tests/wpt/web-platform-tests/html/dom/elements-text.js
Anthony Ramine 57c423a931 Update URL-related interfaces and their tests up to spec
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.
2015-10-19 21:05:07 +02:00

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);