At the web site, A innerHTML's buffer has code 0x8203 per characters.
Categories
(DevTools :: Inspector, defect, P3)
Tracking
(Not tracked)
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.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
| Reporter | ||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
The severity field is not set for this bug.
:Honza, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 3•5 years ago
|
||
@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
Updated•5 years ago
|
| Reporter | ||
Comment 4•5 years ago
|
||
/* 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
Sp
/
/ charCodeAt()'s output
10 8203 83 8203 112
*/
| Reporter | ||
Comment 5•5 years ago
|
||
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
Comment 6•5 years ago
|
||
The severity field is not set for this bug.
:rcaliman, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•5 years ago
|
Updated•5 years ago
|
Description
•