LibWeb: Reject invalid processing instructions

This commit is contained in:
Gingeh 2024-11-06 22:01:36 +11:00 committed by Andreas Kling
commit f88f41cf1e
Notes: github-actions[bot] 2024-11-06 17:49:42 +00:00
6 changed files with 115 additions and 2 deletions

View file

@ -0,0 +1,22 @@
Summary
Harness status: OK
Rerun
Found 12 tests
12 Pass
Details
Result Test Name MessagePass Document.createProcessingInstruction in XML documents
Pass Should throw an INVALID_CHARACTER_ERR for target "A" and data "?>".
Pass Should throw an INVALID_CHARACTER_ERR for target "·A" and data "x".
Pass Should throw an INVALID_CHARACTER_ERR for target "×A" and data "x".
Pass Should throw an INVALID_CHARACTER_ERR for target "A×" and data "x".
Pass Should throw an INVALID_CHARACTER_ERR for target "\\A" and data "x".
Pass Should throw an INVALID_CHARACTER_ERR for target "\f" and data "x".
Pass Should throw an INVALID_CHARACTER_ERR for target 0 and data "x".
Pass Should throw an INVALID_CHARACTER_ERR for target "0" and data "x".
Pass Should get a ProcessingInstruction for target "xml:fail" and data "x".
Pass Should get a ProcessingInstruction for target "A·A" and data "x".
Pass Should get a ProcessingInstruction for target "a0" and data "x".

View file

@ -0,0 +1,22 @@
Summary
Harness status: OK
Rerun
Found 12 tests
12 Pass
Details
Result Test Name MessagePass Document.createProcessingInstruction in HTML documents
Pass Should throw an INVALID_CHARACTER_ERR for target "A" and data "?>".
Pass Should throw an INVALID_CHARACTER_ERR for target "·A" and data "x".
Pass Should throw an INVALID_CHARACTER_ERR for target "×A" and data "x".
Pass Should throw an INVALID_CHARACTER_ERR for target "A×" and data "x".
Pass Should throw an INVALID_CHARACTER_ERR for target "\\A" and data "x".
Pass Should throw an INVALID_CHARACTER_ERR for target "\f" and data "x".
Pass Should throw an INVALID_CHARACTER_ERR for target 0 and data "x".
Pass Should throw an INVALID_CHARACTER_ERR for target "0" and data "x".
Pass Should get a ProcessingInstruction for target "xml:fail" and data "x".
Pass Should get a ProcessingInstruction for target "A·A" and data "x".
Pass Should get a ProcessingInstruction for target "a0" and data "x".