Problem with css attribute selector for lang
Having trouble installing Oxygen? Got a bug to report? Post it all here.
Problem with css attribute selector for lang
Hi,
When I use an CSS attribute selector like
The localized text only shows up if I enter lang="de-". If I just enter lang="de" the english text is still displayed.
Is this the correct implementation of the selector?
Stefan
When I use an CSS attribute selector like
Code: Select all
*[langcode|="de"] filter:before {
content: "Filterkriterium: ";
}
Is this the correct implementation of the selector?
Best regardsExplanation from https://developer.mozilla.org/en-US/doc ... _selectors
[attr|=value]
Represents elements with an attribute name of attr whose value can be exactly value or can begin with value immediately followed by a hyphen, - (U+002D). It is often used for language subcode matches.
Stefan
Stefan Nöbauer
Senior Solution Architect
KGU-Consulting GmbH
Senior Solution Architect
KGU-Consulting GmbH
Re: Problem with css attribute selector for lang
Hi Stefan,
I tested this versus a web browser and you seem to be right, I added an internal issue to fix this. In the meantime maybe you can double the selector and add also a selector which checks for equality:
Regards,
Radu
I tested this versus a web browser and you seem to be right, I added an internal issue to fix this. In the meantime maybe you can double the selector and add also a selector which checks for equality:
Code: Select all
*[langcode|="de"] filter:before, *[langcode="de"] filter:before{
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 483
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Problem with css attribute selector for lang
Post by julien_lacour »
Hello,
Starting with Oxygen 23.0 (already available on our website) you can use the "|=" in the CSS Rules.
Regards,
Julien
Starting with Oxygen 23.0 (already available on our website) you can use the "|=" in the CSS Rules.
Regards,
Julien
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service