开发者

How DOM works/is loaded? (in HTML)

开发者 https://www.devze.com 2023-01-10 06:58 出处:网络
How DOM is loaded in a html page? First is load the all html tag ( ) and inside of this element is created an other element and so on or first is createfollowed by ... and finally, the closing ta开发

How DOM is loaded in a html page? First is load the all html tag ( ) and inside of this element is created an other element and so on or first is create followed by ... and finally, the closing ta开发者_开发技巧gs are added?

Thank you!


More or less. The HTML 5.2 specification has a parsing algorithm.


Generally the whole DOM is loaded into the memory, the order in which the elements are created is internal to the parser implementation and is not exposed.

If you need to parse as document loads you have to use SAX parsers

0

精彩评论

暂无评论...
验证码 换一张
取 消