WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED MOVED
279356
TypeError: Attempted to assign to readonly property - extractFilteredSchemaValuesFromMicroData
https://bugs.webkit.org/show_bug.cgi?id=279356
Summary
TypeError: Attempted to assign to readonly property - extractFilteredSchemaVa...
loic
Reported
2024-09-09 05:17:17 PDT
Using Schema.org LocalBusiness #Example1 code with the microdata (
https://schema.org/LocalBusiness#eg-0004)on
a page makes Safari 17.5 with iPhone iOS 17 moo in the dev console with the following message: "TypeError: Attempted to assign to readonly property". Linked to native extractFilteredSchemaValuesFromMicroData and extractSchemaValuesFromSchemaOrg methods. This was reported on a real iPhone from a customer and reproduced with Xcode Simulator. If needed here is a codesandbox (but copying example from schema.org is enough):
https://codesandbox.io/p/sandbox/5tmwpr
Error has been reported multiple time since a couple of months at least here:
https://github.com/odoo/odoo/issues/162145
Attachments
Test
(288 bytes, text/html)
2024-10-21 08:00 PDT
,
Ryosuke Niwa
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
loic
Comment 1
2024-09-09 05:18:32 PDT
*
https://schema.org/LocalBusiness#eg-0004
loic
Comment 2
2024-09-09 05:20:17 PDT
Error has been narrowed it down. See
https://github.com/odoo/odoo/issues/162145#issuecomment-2074417723
The error appears with PostalAddress schema with: ``` <div itemprop="address" itemscope itemtype="
https://schema.org/PostalAddress
"> <span itemprop="streetAddress">1901 Lemur Ave</span> <span itemprop="addressLocality">Sunnyvale</span>, <span itemprop="addressRegion">CA</span> <span itemprop="postalCode">94086</span> </div> ```
Radar WebKit Bug Importer
Comment 3
2024-09-16 05:18:12 PDT
<
rdar://problem/136069620
>
liew
Comment 4
2024-10-07 04:44:58 PDT
I am running into the same issue, it seems like its a webkit/safari issue since its only there on safari. There is definitely an error with how schema is handled here. I hope it will be fixed soon.
s.hochstoeger
Comment 5
2024-10-21 01:30:08 PDT
We encountered the same issue and resolved it by adding the following HTML tag: <span itemprop="telephone">123456789</span>
Ryosuke Niwa
Comment 6
2024-10-21 08:00:07 PDT
Created
attachment 473006
[details]
Test
Ryosuke Niwa
Comment 7
2024-10-24 13:50:01 PDT
This is a bug in Safari. Consequently, the fix needs to be made in Safari, not WebKit.
Ryosuke Niwa
Comment 8
2025-03-01 10:51:37 PST
This bug is fixed in macOS Sequoia 15.4 beta.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug