00:33
<Domenic>
Yeah promises would really benefit from GCs knowing about their existence... V8 is resistant to that idea. Maybe we can create a benchmark for Firefox to beat them on :)
23:18
<_Y_>
hello
23:18
<jgraham>
Why hello! ;)
23:19
<_Y_>
what a surprise ;)
23:19
<_Y_>
annevk, you there?
23:19
<jgraham>
I expect annevk is asleep at the moment, it being rathter late in Europe
23:19
<_Y_>
oh, right, I forgot
23:20
<jgraham>
But if you ask questions than I think people read the logs / scrollback
23:20
<_Y_>
*nods*
23:21
<_Y_>
Background: I'm writing a parser for a very relaxed XML parser called XML5
23:22
<_Y_>
I'm working on implementing a entity references in attributes
23:22
<_Y_>
attributes can be single-quoted/double-quoted/unquoted
23:23
<_Y_>
So assuming someone wrote something akin to <a link=&foo > and forgot to add semicolon after &foo
23:24
<_Y_>
I want to recover and do something sensible
23:24
<_Y_>
so is it better for entity references to have a set of allowed characters or a set of characters that terminate them?
23:25
<_Y_>
And if so what would preferably this set be?
23:31
<_Y_>
Nvm the last question.
23:32
<_Y_>
spec is currently hosted at: https://ygg01.github.io/xml5_draft/
23:34
<jgraham>
FWIW I wonder if "do what HTML does
23:34
<jgraham>
" is a good enough answer
23:37
<_Y_>
usually it is
23:38
<_Y_>
I think this is complicated in HTML entity refs
23:39
<jgraham>
Well in HTML there's just a fixed list of entities and you find the longest match
23:39
<jgraham>
It's probably the system with the best error recovery
23:40
<_Y_>
right, but theoretically, you could extend the entity references
23:43
<jgraham>
Who could?
23:43
<_Y_>
If we allow a subset of DTD
23:44
<_Y_>
XML author
23:44
<jgraham>
Ah, well I wouldn't allow any of that
23:44
<jgraham>
Far too much trouble for almost no value
23:46
<_Y_>
Hm, so people rarely use DTD to define Entity references?
23:46
<_Y_>
I'm not aware of the use cases
23:47
<jgraham>
See also http://blog.jclark.com/2010/12/more-on-microxml.html which is another post-XML thing that never took off but that also suggests dropping the internal and external subsets
23:52
<jgraham>
I think really the only question here is whether, given some known entity &foo; &foowhatever is equivalent to &foo;whatever or not
23:57
<_Y_>
sounds good