Bug 1441029, give up early on invalid 'is attribute values, r=mrbkap

--HG--
extra : rebase_source : 5e63b39f69e2acafb67fbc8d8dda2fee155db61f
This commit is contained in:
Olli Pettay 2018-05-30 12:41:20 +03:00
parent db8308dd10
commit 36d68d7024
3 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
<div is="div">

View File

@ -239,6 +239,7 @@ pref(dom.webcomponents.shadowdom.enabled,true) load 1419799.html
skip-if(!browserIsRemote) pref(dom.webcomponents.customelements.enabled,true) pref(dom.disable_open_during_load,false) load 1419902.html # skip on non e10s loads, Bug 1419902
pref(dom.webcomponents.shadowdom.enabled,true) load 1422883.html
pref(dom.webcomponents.shadowdom.enabled,true) load 1428053.html
pref(dom.webcomponents.customelements.enabled,true) load 1441029.html
load 1449601.html
load 1445670.html
load 1458016.html

View File

@ -9876,6 +9876,9 @@ nsContentUtils::NewXULOrHTMLElement(Element** aResult, mozilla::dom::NodeInfo* a
int32_t tag = eHTMLTag_unknown;
bool isCustomElementName = false;
if (nodeInfo->NamespaceEquals(kNameSpaceID_XHTML)) {
if (aIsAtom && !nsContentUtils::IsNameWithDash(aIsAtom)) {
aIsAtom = nullptr;
}
tag = nsHTMLTags::CaseSensitiveAtomTagToId(name);
isCustomElementName = (tag == eHTMLTag_userdefined &&
nsContentUtils::IsCustomElementName(name, kNameSpaceID_XHTML));