You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m checking a dataType=”IFCTEXT” in my IDS for my value. So it should be checking String “410.20257“. But IDS check converts this requiredValue automatically to number and checks for 410.20257 then the test fails because 410.20257 ≠ “410.20257“.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
Check that this is a concrete bug. For Q&A join our Community.
Fixed on main, shipping in the next patch (@thatopen/components 3.4.7).
The cause was type coercion at IDS import: the XML parser turns a numeric-looking <simpleValue> (e.g. 410.20257) into a JS number, and the value facet then compared it strictly (===) against your IFC property value, which for IFCTEXT is a string "410.20257". The comparison only stringified the required value for IFCLABEL, so IFCTEXT (and IFCIDENTIFIER) fell through and always failed.
Now the facet value is compared as a string whenever the actual property value is a string, so IFCTEXT string values match correctly. Numeric comparisons are unaffected.
Thanks for the report. Closing as done. If it's still off once the patch is out, let us know and we'll reopen.
Activity
fix(ids): compare string property values as strings in the value facet (
agviegas commentedon Jul 10, 2026
Fixed on
main, shipping in the next patch (@thatopen/components3.4.7).The cause was type coercion at IDS import: the XML parser turns a numeric-looking
<simpleValue>(e.g.410.20257) into a JS number, and the value facet then compared it strictly (===) against your IFC property value, which forIFCTEXTis a string"410.20257". The comparison only stringified the required value forIFCLABEL, soIFCTEXT(andIFCIDENTIFIER) fell through and always failed.Now the facet value is compared as a string whenever the actual property value is a string, so
IFCTEXTstring values match correctly. Numeric comparisons are unaffected.Thanks for the report. Closing as done. If it's still off once the patch is out, let us know and we'll reopen.