Ruby 1.9 Compatibility
Completely removed the html5lib sanitizer. Fixed the string-handling to work in both Ruby 1.8.x and 1.9.2. There are still, inexplicably, two functional tests that fail. But the rest seems to work quite well.
This commit is contained in:
parent
79c8572053
commit
a6429f8c22
142 changed files with 519 additions and 843 deletions
63
attic/vendor/plugins/HTML5lib/testdata/validator/draggableattribute.test
vendored
Executable file
63
attic/vendor/plugins/HTML5lib/testdata/validator/draggableattribute.test
vendored
Executable file
|
@ -0,0 +1,63 @@
|
|||
{"tests": [
|
||||
|
||||
{"description": "valid draggable attribute value 'true'",
|
||||
"input": "<span draggable=true>",
|
||||
"fail-if": "invalid-attribute-value"},
|
||||
|
||||
{"description": "valid draggable attribute value 'TRUE'",
|
||||
"input": "<span draggable=TRUE>",
|
||||
"fail-if": "invalid-attribute-value"},
|
||||
|
||||
{"description": "valid draggable attribute value 'TrUe'",
|
||||
"input": "<span draggable=TrUe>",
|
||||
"fail-if": "invalid-attribute-value"},
|
||||
|
||||
{"description": "valid draggable attribute value 'false'",
|
||||
"input": "<span draggable=false>",
|
||||
"fail-if": "invalid-attribute-value"},
|
||||
|
||||
{"description": "valid draggable attribute value 'FALSE'",
|
||||
"input": "<span draggable=FALSE>",
|
||||
"fail-if": "invalid-attribute-value"},
|
||||
|
||||
{"description": "valid draggable attribute value 'FalSe'",
|
||||
"input": "<span draggable=FalSe>",
|
||||
"fail-if": "invalid-attribute-value"},
|
||||
|
||||
{"description": "invalid draggable attribute value ''",
|
||||
"input": "<span draggable=''>",
|
||||
"fail-unless": "attribute-value-can-not-be-blank"},
|
||||
|
||||
{"description": "valid draggable attribute value (not specified)",
|
||||
"input": "<span draggable>",
|
||||
"fail-unless": "attribute-value-can-not-be-blank"},
|
||||
|
||||
{"description": "invalid draggable attribute value 'foo'",
|
||||
"input": "<span draggable=foo>",
|
||||
"fail-unless": "invalid-enumerated-value"},
|
||||
|
||||
{"description": "invalid draggable attribute value '0'",
|
||||
"input": "<span draggable=0>",
|
||||
"fail-unless": "invalid-enumerated-value"},
|
||||
|
||||
{"description": "invalid draggable attribute value '1'",
|
||||
"input": "<span draggable=1>",
|
||||
"fail-unless": "invalid-enumerated-value"},
|
||||
|
||||
{"description": "invalid draggable attribute value 'yes'",
|
||||
"input": "<span draggable=yes>",
|
||||
"fail-unless": "invalid-enumerated-value"},
|
||||
|
||||
{"description": "invalid draggable attribute value 'no'",
|
||||
"input": "<span draggable=no>",
|
||||
"fail-unless": "invalid-enumerated-value"},
|
||||
|
||||
{"description": "invalid draggable attribute value 'auto'",
|
||||
"input": "<span draggable=auto>",
|
||||
"fail-unless": "invalid-enumerated-value"},
|
||||
|
||||
{"description": "invalid draggable attribute value 'inherit'",
|
||||
"input": "<span draggable=inherit>",
|
||||
"fail-unless": "invalid-enumerated-value"}
|
||||
|
||||
]}
|
Loading…
Add table
Add a link
Reference in a new issue