Respec: Weirdness of "application/x-www-form-urlencoded"

Created on 26 May 2020  路  9Comments  路  Source: w3c/respec

In xref search, "application/x-www-form-urlencoded" is categorized as a HTML attribute... might be a bug in HTML that it's being exported incorrectly?

We are suggesting it be cited as "[^application/x-www-form-urlencoded^]", which doesn't actually match anything.

All 9 comments

[^application/x-www-form-urlencoded^] is buggy for sure. It'll look for "x-www-form-urlencoded" attribute for "application" element. Need to allow escaping / when it's part of the term.

@marcoscaceres What do you prefer for escaping? [^foo//bar^] or [^foo\/bar^] or something else? First one looks cleaner, while second one will be easier in code in future (can make use of regex lookahead assertions) There are more terms like "text/html" that need escaping.

I couldn't figure out what Bikeshed uses - maybe it's not supported there.

I think [^foo\/bar^] as we use \ to escape citations already.

Looks like your comment escaped and rendered wrong?
image

Indeed, rendered wrong... had to escape it 馃槄

This issue can be closed now I think.. until we find a valid case where we need element attr that contains / (or when we support attr-value).

Ok, but does the HTML spec still need to be fixed so it exports the right thing?

Depends on what you want to export from there. I think you were looking for some serializer, which is exported

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andrea-perego picture andrea-perego  路  3Comments

greenkeeper[bot] picture greenkeeper[bot]  路  4Comments

saschanaz picture saschanaz  路  3Comments

xfq picture xfq  路  4Comments

sidvishnoi picture sidvishnoi  路  4Comments