Bug 76348
| Summary: | querySelector fails on numerical ids | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | James Campos <james.r.campos> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | bzbarsky, sam |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
James Campos
http://www.w3.org/TR/html-markup/datatypes.html#common.data.id-def
html5 allows ids beginning with numbers, but chromium 16 throws an error with the following:
document.querySelector('#1')
Error: SYNTAX_ERR: DOM Exception 12
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Boris Zbarsky
See analysis in https://bugzilla.mozilla.org/show_bug.cgi?id=718326