tmpvar/jsdom — Issue #368: Support for HTML5 parsing algorithm's crazy permissive attribute names.
Author: aredridel
Created: 2011-11-20 02:06:12+00:00
State: open

An example of a test I can't make pass because of this -- this one needs an attribute to be named '<'

HTML5's algorithm assumes some private access to the DOM, and can't be fully implemented through the normal front side interfaces.

```
Input:

Expected:

<=""
fail=""

Can't set attribute '<' to value '': (Error: Invalid character: attribute name: <)
# webkit01.dat:41
not ok 1 Document matches example data
---
file: /Users/aredridel/Projects/html5/test/functional/tree-construction-test.js
line: 60
column: 8
stack:
- getCaller (/Users/aredridel/Projects/html5/node_modules/tap/node_modules/tap-assert/assert.js:370:17)
- assert (/Users/aredridel/Projects/html5/node_modules/tap/node_modules/tap-assert/assert.js:17:16)
- Function.equal (/Users/aredridel/Projects/html5/node_modules/tap/node_modules/tap-assert/assert.js:158:10)
- Test._testAssert [as equal] (/Users/aredridel/Projects/html5/node_modules/tap/node_modules/tap-test/test.js:86:16)
- Test. (/Users/aredridel/Projects/html5/test/functional/tree-construction-test.js:60:8)
- Test. (native)
- Test. (events.js:64:17)
- Test.emit (/Users/aredridel/Projects/html5/node_modules/tap/node_modules/tap-test/test.js:102:8)
- GlobalHarness. (/Users/aredridel/Projects/html5/node_modules/tap/node_modules/tap-harness/harness.js:86:13)
- Array.0 (native)
found: |

fail=""
wanted: |

<=""
fail=""
diff: |
FOUND: dy>\n \n fail=\"\"\n
WANTED: dy>\n \n <=\"\"\n fail
^ (at position = 39)
unique: 0
...
ok 2 (unnamed assert)

1..2
# tests 2
# pass 1
# fail 1
```