Open Bug 1658179 Opened 5 years ago Updated 5 years ago

At the web site, A innerHTML's buffer has code 0x8203 per characters.

Categories

(DevTools :: Inspector, defect, P3)

79 Branch
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: takahiro_shizuki, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux aarch64; rv:79.0) Gecko/20100101 Firefox/79.0

Steps to reproduce:

With Firefox 79.0 (64 bit) Mozilla Firefox for Ubuntu canonical - 1.0 installed to NVIDIA Jetson nano,
At https://www.sengoku.co.jp/mod/sgk_cart/search.php?cid=4186 ,
open Inspector, Inspect the first item's description of list, a double click at the string of the tag, copy the description by Ctrl-c and open console, paste it.

Actual results:

The characters of string of the description pasted has code 0x8203.

Expected results:

The characters has no 0x8203.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Console
Component: Console → DOM
Summary: At the web site, A innerHTML's buffer has code 0x8203 per characters in Console. → At the web site, A innerHTML's buffer has code 0x8203 per characters.

The severity field is not set for this bug.
:Honza, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(odvarko)

@takahiro, thanks for the report!

Can you please specify where is the 0x8203 character? (maybe a screenshot highlighting it)
I don't see it.

Thanks!

Honza

Component: DOM → Inspector
Flags: needinfo?(odvarko)
Flags: needinfo?(takahiro_shizuki)

/* https://www.sengoku.co.jp/mod/sgk_cart/search.php?cid=4186
the dom textContent buffer is broken that it has unnecessary character buffer(0x8203).
*/

var description = document.getElementById('list_box02').children[0].children[0].children[2].children[1].children[3].textContent

var limit = 5

var part_description = ""
for (var i=0; i<limit; i++) {
part_description += description.charAt(i)
}
console.log(part_description)

var part_buffer_description = ""
for (var i=0; i<limit; i++) {
part_buffer_description += description.charCodeAt(i) + ' '
}
console.log(part_buffer_description)

/* charAt()'s output

​S​p
/
/
charCodeAt()'s output
10 8203 83 8203 112
*/

Flags: needinfo?(takahiro_shizuki)

Hi, Honza.

Thanks to response.

The dom is "document.getElementById('list_box02').children[0].children[0].children[2].children[1].children[3]".

Best regerds.
Shizuki

The severity field is not set for this bug.
:rcaliman, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(rcaliman)
Severity: -- → S3
Flags: needinfo?(rcaliman)
Priority: -- → P3
Severity: S3 → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: