According to the HTML5 specification, HTML5 is going to support nearly any character as valid for an element’s ID. This means that international languages that feature, say, accented characters are now going to be considered valid in markup.
Sounds neat, right? After all, it brings about a lot of flexibility.
But this also carries with it a couple of things that we as developers are going to need to be aware of…
Because almost any character is considered valid, this means that characters such as plus (+) and carats (< or >) are going to be considered valid, too.
An article on 456 Berea Street provides a solid example of what this entails. For example, according to the HTML5 spec this could be considered a valid ID:
[cc lang=”html”]
Speak your mind...