r/ProgrammerHumor • • Sep 08 '17

Parsing HTML Using Regular Expressions

Post image
11k Upvotes

377 comments sorted by

View all comments

Show parent comment

1

u/MelissaClick Sep 09 '17

Most XHTML pages on the Web are not parsed as XML by today's web browsers. With typical server configurations, browsers will parse your XHTML as HTML “tag soup” instead.

It sounds like XHTML often isn't strictly enforced even when declared.

I think they're saying it's not declared (by the server's Content-Type header).