I could not find anything in the W3C docs that the specified pipe characters,, |are not allowed, for example:
<div class="class1|class2">
Don’t worry about why I can use it. I just wondered if this is "legal".
The corresponding rules can be found in the w3c syndata tokenization section , although it is rather difficult to conclude if the pipe is valid or not, at first glance it seems that something is valid for the selector, i.e.
selector : any+; any : [ IDENT | NUMBER | PERCENTAGE | DIMENSION | STRING | DELIM | URI | HASH | UNICODE-RANGE | INCLUDES | DASHMATCH | ':' | FUNCTION S* any* ')' | '(' S* any* ')' | '[' S* any* ']' ] S*;
HTML, - CDATA. CSS, .
Source: https://habr.com/ru/post/1748060/More articles:HTTPResponse - browser scaling size - pdfCreating a selection result in a popup in javascript - javascriptASP.Net View PDF - asp.netlist of internal constants - vbscriptPython unicode Decode Error SUDs - pythonPHP: Collect all the variables passed to the function as an array? - functionMerge changes when a file on a branch is split into two files on the main - gitjquery - загрузка встроенного javascript через AJAX - javascriptJRuby introspection Java method - javaWhat is the last entry in an empty array (C ++)? - arraysAll Articles