3

My question is basically what the title says:

If browser do not understand angular, why am I seeing angular while inspecting element in spite of using AOT (no angular compiler in the browser)?

Is there anyway to see the DOM with pure html elements?

E.g. Why do I see <k-dialog> element, when using kendo dialog which is angular component? Are these elements simply ignored or are they div under the hood?

enter image description here

7
  • 1
    I see classes and comments and attributes that belong to Angular when I inspect elements of my Angular app, but it's still all standard DOM elements that I'm see. No *ngIf or *ngFor, for example. Can you show us an example of what you're seeing that you don't think is "pure"? Commented Mar 7, 2018 at 0:53
  • @kshetline updated question. Commented Mar 7, 2018 at 0:59
  • 1
    Looks like HTML to me, are you saying the custom tags/element are not valid HTML? Commented Mar 7, 2018 at 1:04
  • @epascarello, Ok, so even it is a valid HTML, what happens to it during rendering? Is it a containing "div" element or simply ignored? Commented Mar 7, 2018 at 1:12
  • 1
    Click on one of the kendo-dialog-* elements and look at the right pane of the Elements tab. You'll see the Styles tab is selected by default, and from that, should be able to tell how (if at all) it is styled. Commented Mar 7, 2018 at 1:50

1 Answer 1

2

What you're seeing is standard HTML, because HTML5 allows custom elements:

https://www.html5rocks.com/en/tutorials/webcomponents/customelements/

Sign up to request clarification or add additional context in comments.

2 Comments

Are these custom elements rendered anyway or simply ignored by the browser?
My impression (and this is just my impression) is that they act very much like either a span or a div, depending on the CSS properties you assign to them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.