Comments (7)
Even that isn't trivial. E.g. you can only become a member being by being one of the other members :)
Because that would require first traversing all existing documents to build up the set of allowed tag strings.
But there are other tricks we could consider such as a dedicated CLI tool that you manually execute once.
It could produce a little report that lists each tags and how often they appear. If a tag is the same as most others but in an unusual case, it could be highlighted.
from yari.
pages under a tag case-insensitive.
Yes please! But it won't stop someone from typing proprety
.
I went through the same problem with my Firebase app I'm hacking on. It's a document store so I basically rely on typing the same string exactly identical in multiple locations of the database. Sucks but everything as its trade-offs.
But how do you know what the valid tags are? Do you need to intimately know exactly what the relevant KS macro expects?
I.e. it's "attribute" not "member".
Does there exist a list somewhere?
We might want to transfer this issue to mdn/yari.
from yari.
By the way, we could easily validate slugs and use the Flaw system to highlight the ones we don't like. But I still don't understand how you're supposed to know which ones are valid in the first place?
We can also break this down and switch to case insensitivity first if you think that's smart.
from yari.
I only intended to imply that we do it for certain known and previously standardized tags. Doing more than that is a longer discussion.
from yari.
We already have a list of standard tags. All I'm advocating here duplicating functionality that we had when this was a wiki. It's worth duplicating because that functionality prevented a lot of pain and an enormous amount of technical debt.
from yari.
From #7456
We might want to transfer this issue to mdn/yari.
from yari.
I'm going to move this issue to yari (as that's where it should live) but I'm going to add the on-hold
label. From what i understand we are only using tags for experimental, deprecated et al and if we're able to power that a different way (say from bcd) we should be able to remove them.
Having said that this issue reminds us to validate front matter as a whole.
from yari.
Related Issues (20)
- web-features baseline status is not sync'd with BCD HOT 4
- `linear-gradient()` Formal syntax is outdated HOT 7
- plain.html is not consistent with deployed index.html HOT 6
- Enable `allow-forms` or do something else. HOT 1
- Links are mixed case, but files on disk are lowercase HOT 1
- Increased font size breaks layout
- Large blank space at bottom of page on certain screen widths HOT 3
- Create short static sharable links in Playground
- MDN Plus and Playground links shows as flaws
- Should other attributes be linked for consistency in the formal syntax? HOT 1
- Duplicate IDs: can they be helped?
- What to do with per-key Baseline statuses
- MDN crashes brave HOT 2
- Formal syntax doesn't show values from other spces
- Page keeps Scrolling Down after footer between specific widths
- AddonSidebar is renders as collapsed when viewing WebExtensions methods docs HOT 1
- Experimental and deprecated icons overlap when the topic is a sidebar heading
- Make Yari compatible with cheerio 1.0.0
- Add @types/js-yaml to devdependency list
- Make the `sidenav-inner` full height when there is no adds to display for paying users
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yari.