P
P
Pupyrka2015-09-23 15:06:59
css
Pupyrka, 2015-09-23 15:06:59

Is it possible to set id in Cyrillic?

In fact, jsfiddle.net/0mc8badr/ works.
What could be the catch?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Ukolov, 2015-09-23
@PPK

The value must be unique among all the IDs in the element's home subtree and must contain at least one character. The value must not contain any space characters.
There are no other restrictions on what form an ID can take; in particular, IDs can consist of just digits, start with a digit, start with an underscore, consist of just punctuation, etc.

www.w3.org/TR/html5/dom.html#the-id-attribute

A
Alexey Lebedev, 2015-09-23
@swanrnd

ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_") , colons (":"), and periods (".").
www.w3.org/TR/html401/types.html#type-name
There is a specification. What is written in it should be supported by all browsers, the rest they can support at will.

D
Denis Ineshin, 2015-09-23
@IonDen

It is possible, but not necessary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question