html5lib / gcode-import

Automatically exported from code.google.com/p/html5lib. Purely archival.
Other
7 stars 8 forks source link

Ability to use custom DOMDocument implementation in custom TreeBuilder (PHP) #159

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

The $dom property of the HTML5_TreeBuilder class is private and provides no 
method to configure a custom implementation of DOMDocument.

What is the expected output? What do you see instead?

Not applicable.

Please provide any additional information below.

I propose that the constructor call a template method to set the $dom property. 
I am attaching some sample code to illustrate my idea.

If you would like me to provide a working patch, please LMK.

Regards,
Marshall

Original issue reported on code.google.com by marshall.sorenson@gmail.com on 17 Aug 2010 at 11:13

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by geoffers on 9 Apr 2013 at 9:59