question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Don't prefix any unprefixable elements

See original GitHub issue

Right 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:open
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
joewebdevcommented, Nov 15, 2017

I would, unfortunately I don’t have the time. But I’ll try and if I have time I will. Thanks.

0reactions
RadValentincommented, Jun 26, 2021

TODO: Add a default value to the exclude config option, exclude: ['html', 'body']

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found