new( first, parent=nil )
Class Public methods
Constructor
1 2 3 4 | dt = DocType. new ( 'foo' , '-//I/Hate/External/IDs' ) # <!DOCTYPE foo '-//I/Hate/External/IDs'> dt = DocType. new ( doctype_to_clone ) # Incomplete. Shallow clone of doctype |
Note
that the constructor:
1 | Doctype. new ( Source. new ( "<!DOCTYPE foo 'bar'>" ) ) |
is deprecated. Do not use it. It will probably disappear.
Please login to continue.