Closed
Bug 1322493
Opened 9 years ago
Closed 9 years ago
Minor bug in example on document.querySelector API page
Categories
(Developer Documentation Graveyard :: API: DOM, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jaredburns3000, Unassigned)
Details
(Whiteboard: [specification][type:bug])
What did you do?
================
1. Go to https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector
2. Scroll down to the Notes section
3. The code example in this section has a minor error on the first line. It says that the output of logging '#foo\bar' is '#foobar', but it's actually '#foo<backspace>ar'.
What happened?
==============
console.log('#foo\bar') // "#foobar"
What should have happened?
==========================
console.log('#foo\bar') // "#fooar"
Is there anything else we should know?
======================================
Comment 1•9 years ago
|
||
That is true. Maybe the example should use a character that doesn't have strange effects in the console, to simplify the example.
Also, MDN is a wiki - you can create an account and make this fix yourself!
Status: UNCONFIRMED → NEW
Component: API → API: DOM
Ever confirmed: true
Product: Mozilla Developer Network → Developer Documentation
| Reporter | ||
Comment 2•9 years ago
|
||
Good point. :-) Looks like you already fixed it, but I went ahead and created my account for next time.
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•