This repository has been archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
useragent example uses outdated selector #15392
Comments
Zajn
added a commit
to Zajn/phantomjs
that referenced
this issue
May 30, 2018
The DOM structure of the page that is retrieved by useragent.js has changed since the example was last updated, and the selector for the user agent value no longer exists. This causes a TypeError to be output to the user when running the example. This updates the example to use a selector that exists on the page. ariya#15392
Zajn
added a commit
to Zajn/phantomjs
that referenced
this issue
May 30, 2018
The DOM structure of the page that is retrieved by useragent.js has changed since the example was last updated, and the selector for the user agent value no longer exists. This causes a TypeError to be output to the user when running the example. This updates the example to use a selector that exists on the page. ariya#15392
ariya
pushed a commit
that referenced
this issue
Jun 2, 2018
The DOM structure of the page that is retrieved by useragent.js has changed since the example was last updated, and the selector for the user agent value no longer exists. This causes a TypeError to be output to the user when running the example. This updates the example to use a selector that exists on the page. #15392
Thanks for the pull request @Zajn! This should be fixed now. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Which version of PhantomJS are you using? Tip: run
phantomjs --version
.2.1.1
What steps will reproduce the problem?
phantomjs examples/useragent.js
Which operating system are you using?
macOS 10.12.6
Did you use binary PhantomJS or did you compile it from source?
Binary
Please provide any additional information below.
When running the
useragent.js
example, I encountered some unexpected output:It seems that the DOM structure of www.httpuseragent.org has changed since this example was last updated.
The text was updated successfully, but these errors were encountered: