Jump to content

DOM Object alters xhtml


Vebut

Recommended Posts

Hi!

I've tried working with DOM now for the past couple of weeks and I really like it. Today I'm building a CSS selector (template engine) with PHP to see if it'll speed up my development. So for the first time I loaded a xhtml file into DOM object and started to work as usual, but it seems that DOM alters the document DTD or something because some tags are removed, some altered, and a few added...

 

Why is that and is there a way to get around it?

 

I've also started to build my very own HTML parser 3 days ago but I'm not very good with regex, so I scraped that idea last night.

 

Thanks

Daniel

Link to comment
https://forums.phpfreaks.com/topic/143598-dom-object-alters-xhtml/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.