ZegnatIt should do what it says there, normalise http://www.southside.de] based on how the HTML spec wants you to do, right? So how does HTML handle these faulty URLs?
sknebelZegnat: that's what I'm trying to figure out. I think it returns an error case, which has to be handled upstream somehow, but I'm not all that familiar with this stuff
ZegnatI wouldn’t surprise me if HTML says that it isn’t relative (because it has a scheme) and just return it as is as an already absolute URL that needs no processing
ZegnatPer spec the question is what HTML resolves "http://www.southside.de]" to. I imagine HTML resolves it to that literal string, so the parser should return the literal string as well.
sknebelbut ok, general votes towards "just pass crap through", I guess a consumer has to expect that anyways since other steps don't care about the URL-ness of things
sknebelyeah. I think since you can't rely on the output, just passing it through and letting the consumer blow up if it doesn't handle it probably is acceptable
ZegnatI wonder if that should get clarified in the mf2 spec. Change away from “return the normalized absolute URL of it” to something like “if the URL does not start with a scheme, apply the containing document's language's rules for resolving relative URLs, else return the gotten value”?
sknebelpossibly. gotta compare what exactly the various parsers do and don't do normalization wise. and of course read the HTML stuff again when I'm more awake