mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibWeb: Implement XMLSerializer
The main thing that is missing is validating certain pieces of data
against XML productions in well-formed mode, but nothing uses
well-formed mode right now.
Required by Closure Library for sanitising HTML.
e687b3d8ab/closure/goog/html/sanitizer/safedomtreeprocessor.js (L117)
This commit is contained in:
parent
60fc0ceabb
commit
de88e119a0
10 changed files with 938 additions and 1 deletions
7
Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.idl
Normal file
7
Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.idl
Normal file
|
@ -0,0 +1,7 @@
|
|||
#import <DOM/Node.idl>
|
||||
|
||||
[Exposed=Window]
|
||||
interface XMLSerializer {
|
||||
constructor();
|
||||
DOMString serializeToString(Node root);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue