Skip to content

Valid targets #6

@pex

Description

@pex

Currently the following strings won't be changed corresponding to the tests:

  • www.foo.com
  • google.com
  • http://www.bar.com
  • //baz.com

from test.js:

  // Non-changing string, should not get replaced
  var ok = ''
    + '<img src="www.foo.com" />'
    + '<img src="google.com" />'
    + '<img src="http://www.bar.com" />'
    + '<img src="//baz.com" />'

Though I think targets without protocol (or //) are not valid URLs and should pass for being relative paths (in this test case this applies to www.foo.com and google.com).
AFAIK most browsers consider such targets as relative URLs, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions