Don't prefix any unprefixable elements
See original GitHub issueRight now the prefixer will process elements that can’t be namespaced (body
and head
, maybe others). The workaround so far has been to use the transform
option added in #16 and let the user provide his own custom logic that deals with this.
It would be cool if the prefixer knew to handle these elements differently out of the box.
/* assuming the prefix is .hello we get the following */
// special cases
body -> body .hello
html -> html .hello
html body -> html body .hello
// prefixer works as usual for any other elements
div -> .hello div
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
NEVER USE PREFIXES WHEN NAMING A METAL
Writing compounds: Use the prefixes to write the subscripts of the molecule, but do NOT reduce the subscripts. Try these: 1. NO.
Read more >QXmlNamespaceSupport Class | Qt 5 Core Compatibility APIs ...
Returns a list of all prefixes currently declared for the namespace URI uri. The "xml:" prefix is included. If you only want one...
Read more >Why is a namespace prefix being added to my XML attribute?
If you want attribute to be in no namespace, ... interpretation of unprefixed attributes is determined by the element on which they appear....
Read more >Affixal Negation in English
But very often the prefix produces a "contrary" term or at any ... positional logic; a proposition such as Socrates is wise has...
Read more >What is the prefix word for unbreakable? - Answers
The root is break. un = prefix able = suffix ... No the word forefather is not a prefix, but there is a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I would, unfortunately I don’t have the time. But I’ll try and if I have time I will. Thanks.
TODO: Add a default value to the exclude config option,
exclude: ['html', 'body']