Closed mhoyer closed 6 years ago
You detect missing intents by not seeing expected results .
For portability and testability in isolation intents are fault tolerant on purpose.
I might notify via console.warn though, that seems a reasonable compromise.
Thoughts?
Sure, console.warn
can help finding such issues. Maybe there should be some option to disable the warnings somehow (for production environments e.g.)? But that's up to you. ;-)
will put an hyperHTML.debug
flag in V2.
Closing this as meant behavior for V1
I can write a very short and simple hyperHTML "application" like so:
Following the documentation about Content Values it is well defined how an Object is evaluated when used inside such string literal.
But the last point does not clarify what happens if even a custom intent was not defined. Currently my example above procudes a wired DOM node output similar to:
So no content in the DOM and no error or warning on the console. Is this behavior on purpose or how should I handle such accidental issues?
A demo of this behavior: https://jsbin.com/dozedalucu/edit?html,output