Adding simple bounds check on InlineStyleInvalidated events
Temporary fix. Better logic should be in place to handle this. Fixes #44
This commit is contained in:
parent
3892722188
commit
8eb44961e2
|
@ -601,6 +601,10 @@ func (h *TargetHandler) domEvent(ctxt context.Context, ev interface{}) {
|
||||||
id, op = e.NodeID, attributeRemoved(e.Name)
|
id, op = e.NodeID, attributeRemoved(e.Name)
|
||||||
|
|
||||||
case *dom.EventInlineStyleInvalidated:
|
case *dom.EventInlineStyleInvalidated:
|
||||||
|
if len(e.NodeIDs) == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
id, op = e.NodeIds[0], inlineStyleInvalidated(e.NodeIds[1:])
|
id, op = e.NodeIds[0], inlineStyleInvalidated(e.NodeIds[1:])
|
||||||
|
|
||||||
case *dom.EventCharacterDataModified:
|
case *dom.EventCharacterDataModified:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user