Notes

In reply to this conservation:
Find it a little sad some of the browser APIs are introduced in such an incomplete state the only way to use them is in try/catch blocks
@glennjones are these implementation issues or spec ones?
@tobie just looking at URL and URLUtils the constructor of URL takes 2 arguments to resolve absolute URL, but the early IE version blows up
@glennjones that's a tough one indeed. What else could IE do not to cause that issue? /cc @adrianba
@tobie @glennjones IE10+ only supported the static methods on URL so there is no constructor. At the time what else could it do but throw?
@adrianba agreed. Still, that makes it painful for devs. There must be a better way. @glennjones
@adrianba I don't know. Would not shipping a partial implementation help? @glennjones
@tobie @glennjones We shipped a complete implementation of what was in the File API spec at the time (which only defined static members).
@adrianba sounds like the @urlstandard should have taken that in account then. @glennjones

@tobie @adrianba I don't known the history, but it does look like the URL object should not have been extended in this way, not a IE issue!

‐ Also on:
Mentions:
@glennjones @tobie It's complicated because I think things were proceeding in parallel. I actually don't think there is a problem here.
@adrianba I'm not blaming IE, btw. We just don't have a good story for these issues. @glennjones
@tobie @adrianba @w3ctag its an issue with API design, developer expectations and documentation. Wrote post: http://bit.ly/1RkmWqP
@glennjones BTW, I expect IE11 to be around for a long time, but not IE10.
@adrianba well, according to @glennjones, there is: lots of try..catch wrapping in lieu of feature detection.
@glennjones Not wonderful, but you might be able to test window.URL.prototype.constructor.length or some such. @tobie @adrianba @w3ctag
@robinberjon I'm sure you meant window.URL.prototype.constructor.prototype.constructor.length. #bettersafethansorry @glennjones @adrianba
In reply to this conservation:
Find it a little sad some of the browser APIs are introduced in such an incomplete state the only way to use them is in try/catch blocks
@glennjones are these implementation issues or spec ones?
@tobie just looking at URL and URLUtils the constructor of URL takes 2 arguments to resolve absolute URL, but the early IE version blows up
@glennjones how to ship partial implementations that don't blow-up in devs' faces is something @w3ctag should help implementors with, imho.

@tobie @w3ctag its a hard problem, but when you start to see cross browser code examples like https://developer.mozilla.org/en-US/docs/Web/API/DOMParser… I do start to worry

‐ Also on:
Mentions:
@glennjones incidentally, that's why we need more tests. /cc @w3ctag
In reply to this conservation:
Find it a little sad some of the browser APIs are introduced in such an incomplete state the only way to use them is in try/catch blocks
@glennjones are these implementation issues or spec ones?

@tobie the examples for URL and URLUtils polyfills are having to use try/catch to get around this. Similar issues with DOMParser

‐ Also on:
In reply to this conservation:
Find it a little sad some of the browser APIs are introduced in such an incomplete state the only way to use them is in try/catch blocks
@glennjones are these implementation issues or spec ones?

@tobie just looking at URL and URLUtils the constructor of URL takes 2 arguments to resolve absolute URL, but the early IE version blows up

‐ Also on:
Mentions:
@glennjones that's a tough one indeed. What else could IE do not to cause that issue? /cc @adrianba
@adrianba agreed. Still, that makes it painful for devs. There must be a better way. @glennjones
@adrianba I don't know. Would not shipping a partial implementation help? @glennjones
@tobie @glennjones IE10+ only supported the static methods on URL so there is no constructor. At the time what else could it do but throw?
@adrianba sounds like the @urlstandard should have taken that in account then. @glennjones
@tobie @adrianba I don't known the history, but it does look like the URL object should not have been extended in this way, not a IE issue!
@glennjones @tobie It's complicated because I think things were proceeding in parallel. I actually don't think there is a problem here.
@adrianba well, according to @glennjones, there is: lots of try..catch wrapping in lieu of feature detection.
@adrianba I'm not blaming IE, btw. We just don't have a good story for these issues. @glennjones
@glennjones incidentally, that's why we need more tests. /cc @w3ctag
@tobie @adrianba @w3ctag its an issue with API design, developer expectations and documentation. Wrote post: http://bit.ly/1RkmWqP
@tobie @w3ctag its a hard problem, but when you start to see cross browser code examples like https://developer.mozilla.org/en-US/docs/Web/API/DOMParser… I do start to worry
@glennjones BTW, I expect IE11 to be around for a long time, but not IE10.
@glennjones how to ship partial implementations that don't blow-up in devs' faces is something @w3ctag should help implementors with, imho.
@glennjones Not wonderful, but you might be able to test window.URL.prototype.constructor.length or some such. @tobie @adrianba @w3ctag
@tobie @glennjones We shipped a complete implementation of what was in the File API spec at the time (which only defined static members).

Find it a little sad some of the browser APIs are introduced in such an incomplete state the only way to use them is in try/catch blocks

‐ Also on:
Mentions:
@glennjones are these implementation issues or spec ones?
@glennjones incidentally, that's why we need more tests. /cc @w3ctag
@tobie @glennjones IE10+ only supported the static methods on URL so there is no constructor. At the time what else could it do but throw?
@adrianba agreed. Still, that makes it painful for devs. There must be a better way. @glennjones
@tobie @w3ctag its a hard problem, but when you start to see cross browser code examples like https://developer.mozilla.org/en-US/docs/Web/API/DOMParser… I do start to worry
@adrianba I don't know. Would not shipping a partial implementation help? @glennjones
@tobie @glennjones We shipped a complete implementation of what was in the File API spec at the time (which only defined static members).
@adrianba sounds like the @urlstandard should have taken that in account then. @glennjones
@tobie @adrianba I don't known the history, but it does look like the URL object should not have been extended in this way, not a IE issue!
@glennjones @tobie It's complicated because I think things were proceeding in parallel. I actually don't think there is a problem here.
@glennjones how to ship partial implementations that don't blow-up in devs' faces is something @w3ctag should help implementors with, imho.
@adrianba well, according to @glennjones, there is: lots of try..catch wrapping in lieu of feature detection.
@glennjones that's a tough one indeed. What else could IE do not to cause that issue? /cc @adrianba
@adrianba I'm not blaming IE, btw. We just don't have a good story for these issues. @glennjones
@tobie the examples for URL and URLUtils polyfills are having to use try/catch to get around this. Similar issues with DOMParser
@tobie @adrianba @w3ctag its an issue with API design, developer expectations and documentation. Wrote post: http://bit.ly/1RkmWqP
@tobie just looking at URL and URLUtils the constructor of URL takes 2 arguments to resolve absolute URL, but the early IE version blows up
@glennjones BTW, I expect IE11 to be around for a long time, but not IE10.

Watching a captured swarm of bees walk into their new home. It's always interesting to see. pic.twitter.com/nrxJ8RnHz4

‐ Also on:

Too hot to think never mind code falling back to my default activity - off to the pub

‐ Also on:
Mentions:
.@glennjones It's very much beer o'clock.

Proud to receive our top 100 exporters award at the Sunday Times SME Export Awards 2015 - number 46! #SMEexport100 pic.twitter.com/7CHGG8skxh

‐ Also on:

At @edgeconf looking forward to a full day of web tech conversations

‐ Also on:
Mentions:

Its amusing with Javascript that we are using an increasingly complex and error proned toolset to try to stop our code having these traits

‐ Also on:

Page: 14 of 241

previous

more

Page created: