Closed kienD closed 6 years ago
Make sense. Needs to add support for them. Could you please try to make the change? You can coordinate with @fernandosouza if you need help. Thanks.
Sure, I'll make the changes and send a pr.
Merged to develop
and scheduled for 3.1.0
since we decided to add as an optional new feature rather than fix as a bug.
The
maybeAddProtocolAndHostname_(opt_uri)
method prepends the uri withhttp://
and then passes the value to theparse
method which is trying to create anew URL(opt_uri)
with the original protocol and thehttp//:
protocol prepending it.For example, if
href="tel:123-123-1234"
it will try to create anew URL(opt_uri)
whereopt_uri = "http://tel:123-123-1234"
.This will cause the following JS error to occur:
Uncaught TypeError: Failed to construct 'URL': Invalid URL
As of now, I know that this is an issue for the following protocol handlers:
I ran into this issue while trying to utilize an anchor to navigate to an application via sennaJS.