Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?

Forums » Article Discussions

Discuss the articles posted on Dev.Opera.

Note: You need to login to post in the forums. if you don't have an account you first need to sign up.

By bhenick anchor Friday, 26. September 2008, 15:25:13

Supplementary: Common HTML entities used for typography



( Read the article )

By stonetownmike anchor Wednesday, 29. October 2008, 17:49:28

avatarWhat about ampersand? Is html entity code no longer necessary?

By scarby421 anchor Sunday, 1. February 2009, 21:59:30

avatarHi, I find the less than and the greater than arrows are handy also. IE: <....>

By daniiswara anchor Tuesday, 24. February 2009, 04:16:59

avataron a doctype xhtml 1.1, better to use the unicode value, I guess

By dorward anchor Wednesday, 25. February 2009, 21:47:15

avatar


For the sake of portability, Unicode entity references should be reserved for use in documents certain to be written in the UTF-8 or UTF-16 character sets.



What user agents get numeric character references wrong in non-UTF-8/16 documents?

By dorward anchor Wednesday, 25. February 2009, 21:49:53

avatar

Originally posted by daniiswara:

on a doctype xhtml 1.1, better to use the unicode value, I guess



XHTML is a tricky beast. One school of thought is that documents should be written to be parsed by generic, non-validating XML parsers. Since they are generic they do not know HTML named character references, and since they are non-validating they don't parse the DTD to find them out either. Hence, numeric character references for everything except the XML 5.

... but if you subscribe to that school of thought, there is no point in limiting it to a specific version of XHTML. The logic either applies to all versions or none.

Moderators: pepelsbey | dstorey | mcx | operadev | chrismills | shwetankdixit | brucelawson | iheni | andreasbovens | zibin | mollydotcom