Hey Guys. I'm trying to access a website (www.minhacasaminhavida.pe.gov.br) but webkit based browsers doesn't work with that. This is the message returned by WebInpector:
INVALID_CHARACTER_ERR: DOM Exception 5
HTMLComponents.js:1962Error: INVALID_CHARACTER_ERR: DOM Exception 5
The file location is http://www.minhacasaminhavida.pe.gov.br/pmc/components/HTMLComponents.js
Thanks in Advance
(In reply to comment #0)
> Hey Guys. I'm trying to access a website (www.minhacasaminhavida.pe.gov.br) but
> webkit based browsers doesn't work with that. This is the message returned by
> INVALID_CHARACTER_ERR: DOM Exception 5
> HTMLComponents.js:1962Error: INVALID_CHARACTER_ERR: DOM Exception 5
> The file location is
> Thanks in Advance
Ah, forgot to add that it works in Firefox and IE too.
Believe it or not, but Firefox successfully creates a SELECT element with document.createElement("<select>"). IE has a separate code path.
Seems we should file a bug with mozilla.
IE even supports document.createElement("<select readonly>"), but Firefox does not.
My guess is that Firefox had to partially implement this IE quirk for web compatibility.
*** Bug 44841 has been marked as a duplicate of this bug. ***
Another example of a broken site in duplicate bug.
Alexey's guess in comment 4 is correct:
Mozilla bug discussing the problem:
Diff showing they added angle brackets:
But it looks like they removed it in 2004:
> But it looks like they removed it in 2004:
In fact, that's July 2010, just weird date formatting.
If Mozilla won't reconsider removing this quirk before shipping Firefox 4, we almost certainly don't want to add it.
I don't think Mozilla will add this quirk back. (At least, I'll do what I can to avoid it.)
Lúcio, any chance you could contact the website? The changes they need to make come down to changing document.createElement("<img>") to document.createElement("img"). (The ones that are guarded by isIE checks are probably not problematic.)