Fixes T8919. In Safari, node.href = null; has no effect, but in Chrome it is like node.href = "null";.
Instead, just use semantics similar to phutil_tag(): don't assign attributes with null values.
Differential D14021
Don't copy `null` attributes passed to JX.$N() epriestley on Aug 31 2015, 10:30 PM. Authored by Tags None Referenced Files
Subscribers None
Details
Fixes T8919. In Safari, node.href = null; has no effect, but in Chrome it is like node.href = "null";. Instead, just use semantics similar to phutil_tag(): don't assign attributes with null values. No more /null href in Chrome in Owners typehaead. Typeahead still works in Chrome/Safari.
Diff Detail
|