Bug 1270459 - Limit td/th.scope to known values; r=bz

This commit is contained in:
Aryeh Gregor 2016-05-05 21:29:54 +03:00
Родитель 7ab958ba96
Коммит 4f9767021b
3 изменённых файлов: 7 добавлений и 184 удалений

Просмотреть файл

@ -369,6 +369,12 @@ static const nsAttrValue::EnumTable kCellScopeTable[] = {
{ 0 }
};
void
HTMLTableCellElement::GetScope(DOMString& aScope)
{
GetEnumAttr(nsGkAtoms::scope, nullptr, aScope);
}
bool
HTMLTableCellElement::ParseAttribute(int32_t aNamespaceID,
nsIAtom* aAttribute,

Просмотреть файл

@ -66,10 +66,7 @@ public:
{
SetHTMLAttr(nsGkAtoms::abbr, aAbbr, aError);
}
void GetScope(DOMString& aScope)
{
GetHTMLAttr(nsGkAtoms::scope, aScope);
}
void GetScope(DOMString& aScope);
void SetScope(const nsAString& aScope, ErrorResult& aError)
{
SetHTMLAttr(nsGkAtoms::scope, aScope, aError);

Просмотреть файл

@ -270,186 +270,6 @@
[th.rowSpan: IDL set to 2147483647 followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to " \\0\\x01\\x02\\x03\\x04\\x05\\x06\\x07 \\b\\t\\n\\v\\f\\r\\x0e\\x0f \\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17 \\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f foo " followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to undefined followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to 7 followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to 1.5 followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to true followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to false followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to object "[object Object\]" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to NaN followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to Infinity followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to -Infinity followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "\\0" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to null followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to object "test-toString" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to object "test-valueOf" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "xrow" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "row\\0" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "ow" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "ROW" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "xcol" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "col\\0" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "ol" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "COL" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "xrowgroup" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "rowgroup\\0" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "owgroup" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "ROWGROUP" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "xcolgroup" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "colgroup\\0" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "olgroup" followed by IDL get]
expected: FAIL
[th.scope: setAttribute() to "COLGROUP" followed by IDL get]
expected: FAIL
[th.scope: IDL set to " \\0\\x01\\x02\\x03\\x04\\x05\\x06\\x07 \\b\\t\\n\\v\\f\\r\\x0e\\x0f \\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17 \\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f foo " followed by IDL get]
expected: FAIL
[th.scope: IDL set to undefined followed by IDL get]
expected: FAIL
[th.scope: IDL set to 7 followed by IDL get]
expected: FAIL
[th.scope: IDL set to 1.5 followed by IDL get]
expected: FAIL
[th.scope: IDL set to true followed by IDL get]
expected: FAIL
[th.scope: IDL set to false followed by IDL get]
expected: FAIL
[th.scope: IDL set to object "[object Object\]" followed by IDL get]
expected: FAIL
[th.scope: IDL set to NaN followed by IDL get]
expected: FAIL
[th.scope: IDL set to Infinity followed by IDL get]
expected: FAIL
[th.scope: IDL set to -Infinity followed by IDL get]
expected: FAIL
[th.scope: IDL set to "\\0" followed by IDL get]
expected: FAIL
[th.scope: IDL set to null followed by IDL get]
expected: FAIL
[th.scope: IDL set to object "test-toString" followed by IDL get]
expected: FAIL
[th.scope: IDL set to object "test-valueOf" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "xrow" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "row\\0" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "ow" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "ROW" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "xcol" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "col\\0" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "ol" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "COL" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "xrowgroup" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "rowgroup\\0" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "owgroup" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "ROWGROUP" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "xcolgroup" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "colgroup\\0" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "olgroup" followed by IDL get]
expected: FAIL
[th.scope: IDL set to "COLGROUP" followed by IDL get]
expected: FAIL
[th.sorted: typeof IDL attribute]
expected: FAIL