최  호민

최 호민

1679055670

HTML6 출시 – HTML6의 새로운 기능

HTML6이 오고 있습니다. HTML6에서 가장 많이 변경되는 사항과 HTML6의 새로운 기능, HTML6의 새로운 기능입니다. 이 문서는 HTML6에 대한 통찰력을 얻는 데 도움이 됩니다. HTML6 릴리스 날짜? HTML 6 전용 라이브러리, HTML6의 사용자 정의 메뉴, HTML6 통합 카메라 등

웹 언어인 HTML은 가장 잘 알려진 웹 기술 중 하나입니다. HTML은 도입된 이후로 인터넷 구축에 지속적으로 사용되어 왔습니다.

HTML6이 온다 - 미리 보기

많은 새로운 기술이 웹 사이트 생성 프로세스를 더 간단하고 효율적으로 만들었지만 HTML은 항상 핵심이었습니다.

HTML5는 2014년에 나왔습니다. 하이퍼텍스트 마크업 언어의 표준화를 향한 또 하나의 발걸음이었습니다. 2014년 10월에 개정된 HTML 사양은 합리적이었습니다.

사람들은 이제 또 다른 업그레이드를 기다리고 있습니다. HTML6이 진행 중입니다.

WHATWG – HTML 사양을 규제하는 기관은 HTML 사양을 한 번에 광범위하게 변경하는 것이 아니라 시간이 지남에 따라 지속적으로 변경할 것입니다(출처에서 알 수 있듯이).

이 기사에서는 HTML6에서 가장 많이 변경되는 사항과 HTML6의 새로운 기능에 대해 살펴보겠습니다.
우리가 주요 콘텐츠에 뛰어들 것이므로 허리띠를 조이십시오.

목차

  • 익스프레스 태그
  • 네이티브 모달 지원
  • 이미지 크기 조정의 자유
  • HTML 6 전용 라이브러리
  • 이미지 및 비디오에 대한 주석
  • 인증 향상
  • HTML6의 사용자 정의 메뉴
  • HTML6 통합 카메라
  • 좋은 마이크로포맷
  • JavaScript가 없는 단일 페이지 앱
  • 결론

익스프레스 태그

이름에서 알 수 있듯이 이러한 태그는 명시적입니다. 웹 페이지의 로고용과 같은 태그를 사용할 수 있습니다.
또한 , , 등의 태그를 사용할 수 있습니다.

HTML 6의 기본 모달 지원

대화 상자 요소는 HTML6과 함께 제공됩니다. 이 요소는 JavaScript 기반 모달 창과 동등한 것으로 간주됩니다.

Dialog 요소는 이미 표준화되어 있지만 Chrome 및 Samsung 인터넷 브라우저와 같은 일부 브라우저만 완벽하게 지원합니다. 걱정하지 마세요. 곧 모든 브라우저에서 작동할 것입니다.

기본 형식의 이 요소는 배치된 위치 위에만 마우스를 표시합니다.

보다 일반적인 모달과 유사한 인터페이스를 사용하려면 JavaScript를 통해 모달 메서드를 열 수 있습니다.

<dialog>
  <form method="dialog">
    <input type="submit" value="Ok" />
    <input type="submit" value="Cancel" />
  </form>
</dialog>

기본 형식에서 요소는 그 아래에 비대화형 콘텐츠가 있는 회색 배경을 만듭니다.

메소드 속성은 dialog 요소 내부의 양식에서 사용할 수 있습니다. 이것은 값을 제출하고 값을 대화 상자 개체 자체로 다시 전달합니다.

전반적으로 이 대화 상자 요소는 사용자와의 작은 상호 작용 및 UI 향상에 유용합니다.

open 속성을 토글하여 표준 HTML 형식으로 열고 닫을 수 있습니다.

<dialog open>
  <p>Dialog Box Built with HTML 6</p>
</dialog>

이미지 크기 조정의 자유

전문가들은 브라우저가 최상의 시청 경험을 위해 이미지 크기를 조정할 수 있는 업데이트가 진행 중이라고 생각합니다.

브라우저는 장치 및 창 크기와 관련하여 최상의 이미지 크기를 표시하는 데 어려움이 있습니다.

Src 및 IMG 태그는 이 문제를 처리하는 데 그다지 강력하지 않습니다. 새 태그 <srcset> 을 사용할 수 있습니다.

이 태그는 브라우저가 최상의 보기를 표시하기 위해 둘 이상의 이미지 중에서 선택하도록 할 수 있습니다.

HTML 6 전용 라이브러리

HTML6에 캐시 가능한 라이브러리를 도입하는 것은 웹 디자이너와 사용자 모두의 생산성을 향상시키는 단계가 될 것입니다.

이미지 및 비디오에 대한 주석

HTML로 이미지와 비디오에 주석을 달 수 있다면 좋을 것입니다. HTML5는 단어, 문장, 단락을 해석할 수 있는 기능을 제공하지만 이미지와 비디오는 제공하지 않습니다.

현장의 많은 조직이 솔루션을 제공했으며 WHATWG는 적어도 그 중 일부를 고려할 것으로 보입니다.

희망을 가지 자; 곧 HTML로 이미지와 동영상에 주석을 추가할 예정입니다.

인증 향상

HTML5는 보안 측면에서 나쁘지 않습니다. 브라우저와 웹 기술도 합리적인 보호를 제공합니다. 의심할 여지 없이 인증 및 보안 영역에서 훨씬 더 많은 일을 할 수 있습니다.

키는 오프사이트에 저장할 수 있습니다. 이렇게 하면 원치 않는 사람의 액세스를 방지하고 인증을 강화할 수 있습니다. 쿠키 대신 내장 키 사용, 디지털 서명 개선 등

사람과 싱크탱크는 제공할 수 있는 솔루션이 많으며, 이를 수락하거나 거부하는 것은 모두 WHATWG에 달려 있습니다.

HTML6의 사용자 정의 메뉴

UI 및 OL 태그는 유용하지만 모든 요구 사항에 적합하지는 않습니다. 대화형 요소를 더 잘 처리할 수 있는 태그 또는 메뉴 태그가 시급합니다.

메뉴는 메뉴 내부의 버튼에 의해 트리거되는 목록 요소를 처리할 수 있습니다.

<menu type="toolbar">
  <li><button>Cut</button></li>
  <li><button>Copy</button></li>
  <li><button>Paste</button></li>
</menu>

메뉴는 HTML에서 목록의 기능을 향상시킬 수 있으며 일반 목록처럼 잘 작동할 수 있습니다.

HTML6 통합 카메라

HTML6을 사용하면 장치에서 카메라와 미디어를 최상의 상태로 사용할 수 있습니다. 카메라, 효과, 모드, 파노라마 이미지, HDR 등을 제어할 수 있습니다.

우리는 모든 미디어를 사용하고 용도를 ​​변경할 수 있습니다. 카메라와 HTML6으로 개선할 수 있는 많은 것들이 있습니다.

좋은 마이크로포맷

많은 경우 인터넷에서 일반 정보를 정의해야 합니다.
일반 정보는 전화번호, 이름, 주소 등과 같이 공개된 모든 것이 될 수 있습니다. 마이크로포맷은 일반 데이터를 정의할 수 있는 표준입니다.

Microformats는 디자이너의 능력을 향상시킬 수 있으며 공개 정보를 추론하는 데 필요한 검색 엔진의 노력을 줄일 수 있습니다.

Javascript가 없는 단일 페이지 앱

FutureClaw Magazine 의 편집장인 Bobby Mozumder 는 다음과 같이 제안합니다.

앵커 요소를 JSON/XML, API 끝점에 연결하고 브라우저가 내부적으로 데이터를 새 데이터 구조로 로드하도록 한 다음 브라우저는 DOM 요소를 필요에 따라 로드된 데이터로 대체합니다. 초기 데이터(및 표준 오류 응답)는 원하는 경우 나중에 교체할 ​​수 있는 헤더 고정물에 있을 수 있습니다.

그에 따르면 이것은 자바스크립트를 로드할 필요가 없기 때문에 응답성과 로딩 시간을 향상시키는 단일 페이지 앱 웹 디자인 패턴입니다.

결론

완벽한 것도 HTML도 아니므로 HTML 사양을 개선하기 위해 할 수 있는 일이 많이 있습니다.

HTML의 기능을 향상시키기 위해 몇 가지 유용한 규범을 표준화해야 합니다. 작은 변경 사항이 이미 출시되기 시작했습니다.

기술 전문가의 의견을 고려하고 일반 대중의 의견도 경청하면 아이디어를 얻을 수 있습니다.

Bluetooth 지원 향상, p2p 파일 전송, 맬웨어 보호, 클라우드 스토리지 통합은 HTML의 다음 버전에서 고려해야 할 사항입니다.

이것은 미래를 위한 것입니다. 그러나 이미 소개된 일부 업데이트가 있으며 일부는 곧 발표될 가능성이 가장 높은 반면 다른 일부는 단순한 예측입니다.

이 기사가 HTML6에 대한 통찰력을 얻는 데 도움이 되기를 바랍니다. 읽어주셔서 감사하고 다른 기술 전문가 및 HTML 전문가와 공유해 주세요.

#html

What is GEEK

Buddha Community

HTML6 출시 – HTML6의 새로운 기능
최  호민

최 호민

1679055670

HTML6 출시 – HTML6의 새로운 기능

HTML6이 오고 있습니다. HTML6에서 가장 많이 변경되는 사항과 HTML6의 새로운 기능, HTML6의 새로운 기능입니다. 이 문서는 HTML6에 대한 통찰력을 얻는 데 도움이 됩니다. HTML6 릴리스 날짜? HTML 6 전용 라이브러리, HTML6의 사용자 정의 메뉴, HTML6 통합 카메라 등

웹 언어인 HTML은 가장 잘 알려진 웹 기술 중 하나입니다. HTML은 도입된 이후로 인터넷 구축에 지속적으로 사용되어 왔습니다.

HTML6이 온다 - 미리 보기

많은 새로운 기술이 웹 사이트 생성 프로세스를 더 간단하고 효율적으로 만들었지만 HTML은 항상 핵심이었습니다.

HTML5는 2014년에 나왔습니다. 하이퍼텍스트 마크업 언어의 표준화를 향한 또 하나의 발걸음이었습니다. 2014년 10월에 개정된 HTML 사양은 합리적이었습니다.

사람들은 이제 또 다른 업그레이드를 기다리고 있습니다. HTML6이 진행 중입니다.

WHATWG – HTML 사양을 규제하는 기관은 HTML 사양을 한 번에 광범위하게 변경하는 것이 아니라 시간이 지남에 따라 지속적으로 변경할 것입니다(출처에서 알 수 있듯이).

이 기사에서는 HTML6에서 가장 많이 변경되는 사항과 HTML6의 새로운 기능에 대해 살펴보겠습니다.
우리가 주요 콘텐츠에 뛰어들 것이므로 허리띠를 조이십시오.

목차

  • 익스프레스 태그
  • 네이티브 모달 지원
  • 이미지 크기 조정의 자유
  • HTML 6 전용 라이브러리
  • 이미지 및 비디오에 대한 주석
  • 인증 향상
  • HTML6의 사용자 정의 메뉴
  • HTML6 통합 카메라
  • 좋은 마이크로포맷
  • JavaScript가 없는 단일 페이지 앱
  • 결론

익스프레스 태그

이름에서 알 수 있듯이 이러한 태그는 명시적입니다. 웹 페이지의 로고용과 같은 태그를 사용할 수 있습니다.
또한 , , 등의 태그를 사용할 수 있습니다.

HTML 6의 기본 모달 지원

대화 상자 요소는 HTML6과 함께 제공됩니다. 이 요소는 JavaScript 기반 모달 창과 동등한 것으로 간주됩니다.

Dialog 요소는 이미 표준화되어 있지만 Chrome 및 Samsung 인터넷 브라우저와 같은 일부 브라우저만 완벽하게 지원합니다. 걱정하지 마세요. 곧 모든 브라우저에서 작동할 것입니다.

기본 형식의 이 요소는 배치된 위치 위에만 마우스를 표시합니다.

보다 일반적인 모달과 유사한 인터페이스를 사용하려면 JavaScript를 통해 모달 메서드를 열 수 있습니다.

<dialog>
  <form method="dialog">
    <input type="submit" value="Ok" />
    <input type="submit" value="Cancel" />
  </form>
</dialog>

기본 형식에서 요소는 그 아래에 비대화형 콘텐츠가 있는 회색 배경을 만듭니다.

메소드 속성은 dialog 요소 내부의 양식에서 사용할 수 있습니다. 이것은 값을 제출하고 값을 대화 상자 개체 자체로 다시 전달합니다.

전반적으로 이 대화 상자 요소는 사용자와의 작은 상호 작용 및 UI 향상에 유용합니다.

open 속성을 토글하여 표준 HTML 형식으로 열고 닫을 수 있습니다.

<dialog open>
  <p>Dialog Box Built with HTML 6</p>
</dialog>

이미지 크기 조정의 자유

전문가들은 브라우저가 최상의 시청 경험을 위해 이미지 크기를 조정할 수 있는 업데이트가 진행 중이라고 생각합니다.

브라우저는 장치 및 창 크기와 관련하여 최상의 이미지 크기를 표시하는 데 어려움이 있습니다.

Src 및 IMG 태그는 이 문제를 처리하는 데 그다지 강력하지 않습니다. 새 태그 <srcset> 을 사용할 수 있습니다.

이 태그는 브라우저가 최상의 보기를 표시하기 위해 둘 이상의 이미지 중에서 선택하도록 할 수 있습니다.

HTML 6 전용 라이브러리

HTML6에 캐시 가능한 라이브러리를 도입하는 것은 웹 디자이너와 사용자 모두의 생산성을 향상시키는 단계가 될 것입니다.

이미지 및 비디오에 대한 주석

HTML로 이미지와 비디오에 주석을 달 수 있다면 좋을 것입니다. HTML5는 단어, 문장, 단락을 해석할 수 있는 기능을 제공하지만 이미지와 비디오는 제공하지 않습니다.

현장의 많은 조직이 솔루션을 제공했으며 WHATWG는 적어도 그 중 일부를 고려할 것으로 보입니다.

희망을 가지 자; 곧 HTML로 이미지와 동영상에 주석을 추가할 예정입니다.

인증 향상

HTML5는 보안 측면에서 나쁘지 않습니다. 브라우저와 웹 기술도 합리적인 보호를 제공합니다. 의심할 여지 없이 인증 및 보안 영역에서 훨씬 더 많은 일을 할 수 있습니다.

키는 오프사이트에 저장할 수 있습니다. 이렇게 하면 원치 않는 사람의 액세스를 방지하고 인증을 강화할 수 있습니다. 쿠키 대신 내장 키 사용, 디지털 서명 개선 등

사람과 싱크탱크는 제공할 수 있는 솔루션이 많으며, 이를 수락하거나 거부하는 것은 모두 WHATWG에 달려 있습니다.

HTML6의 사용자 정의 메뉴

UI 및 OL 태그는 유용하지만 모든 요구 사항에 적합하지는 않습니다. 대화형 요소를 더 잘 처리할 수 있는 태그 또는 메뉴 태그가 시급합니다.

메뉴는 메뉴 내부의 버튼에 의해 트리거되는 목록 요소를 처리할 수 있습니다.

<menu type="toolbar">
  <li><button>Cut</button></li>
  <li><button>Copy</button></li>
  <li><button>Paste</button></li>
</menu>

메뉴는 HTML에서 목록의 기능을 향상시킬 수 있으며 일반 목록처럼 잘 작동할 수 있습니다.

HTML6 통합 카메라

HTML6을 사용하면 장치에서 카메라와 미디어를 최상의 상태로 사용할 수 있습니다. 카메라, 효과, 모드, 파노라마 이미지, HDR 등을 제어할 수 있습니다.

우리는 모든 미디어를 사용하고 용도를 ​​변경할 수 있습니다. 카메라와 HTML6으로 개선할 수 있는 많은 것들이 있습니다.

좋은 마이크로포맷

많은 경우 인터넷에서 일반 정보를 정의해야 합니다.
일반 정보는 전화번호, 이름, 주소 등과 같이 공개된 모든 것이 될 수 있습니다. 마이크로포맷은 일반 데이터를 정의할 수 있는 표준입니다.

Microformats는 디자이너의 능력을 향상시킬 수 있으며 공개 정보를 추론하는 데 필요한 검색 엔진의 노력을 줄일 수 있습니다.

Javascript가 없는 단일 페이지 앱

FutureClaw Magazine 의 편집장인 Bobby Mozumder 는 다음과 같이 제안합니다.

앵커 요소를 JSON/XML, API 끝점에 연결하고 브라우저가 내부적으로 데이터를 새 데이터 구조로 로드하도록 한 다음 브라우저는 DOM 요소를 필요에 따라 로드된 데이터로 대체합니다. 초기 데이터(및 표준 오류 응답)는 원하는 경우 나중에 교체할 ​​수 있는 헤더 고정물에 있을 수 있습니다.

그에 따르면 이것은 자바스크립트를 로드할 필요가 없기 때문에 응답성과 로딩 시간을 향상시키는 단일 페이지 앱 웹 디자인 패턴입니다.

결론

완벽한 것도 HTML도 아니므로 HTML 사양을 개선하기 위해 할 수 있는 일이 많이 있습니다.

HTML의 기능을 향상시키기 위해 몇 가지 유용한 규범을 표준화해야 합니다. 작은 변경 사항이 이미 출시되기 시작했습니다.

기술 전문가의 의견을 고려하고 일반 대중의 의견도 경청하면 아이디어를 얻을 수 있습니다.

Bluetooth 지원 향상, p2p 파일 전송, 맬웨어 보호, 클라우드 스토리지 통합은 HTML의 다음 버전에서 고려해야 할 사항입니다.

이것은 미래를 위한 것입니다. 그러나 이미 소개된 일부 업데이트가 있으며 일부는 곧 발표될 가능성이 가장 높은 반면 다른 일부는 단순한 예측입니다.

이 기사가 HTML6에 대한 통찰력을 얻는 데 도움이 되기를 바랍니다. 읽어주셔서 감사하고 다른 기술 전문가 및 HTML 전문가와 공유해 주세요.

#html

Corey Brooks

Corey Brooks

1582172879

HTML6 is Coming – What’s new in HTML6

HTML6 is coming, what things would most probably be changing in HTML6 and what’s new in HTML6, new features in HTML6. This article will helps you get an insight into HTML6: HTML6 release date? HTML 6 Dedicated Libraries, Customized Menus in HTML6, HTML6 Integrated Camera, and more

HTML, the language of the web, is one of the most well-known web technology. HTML has been in use continually for building the internet since the time it was introduced.

HTML6 is Coming - Here is a Sneak Peek

Although many new techniques have made the website creation process simpler and more efficient, HTML has always been there at the core.

HTML5 came out in 2014; it was one more step towards standardization of the hypertext markup language. HTML specification revised in October 2014, was reasonable.

People now are waiting for another upgrade, and guess what? HTML6 is on its way.

WHATWG – The body that regulates HTML specifications will be changing HTML specifications continually over time, not broad at once (as sources say).

In this article, we are going to take a look at what things would most probably be changing in HTML6 and what’s new in HTML6.
Fasten your belts as we are going to dive into the main content.

Table of Contents

  • Express Tags
  • Native Modals Support
  • Freedom to Resize Image
  • HTML 6 Dedicated Libraries
  • Annotations for Images and Videos
  • Authentication Enhancement
  • Customized Menus in HTML6
  • HTML6 Integrated Camera
  • Good Microformats
  • Single-Page Apps without JavaScript
  • Conclusion

Express tags

As the name suggests, these tags are express. Tags such as the for the logo on your webpage can be put in use.
Moreover, tags such as , , would be available.

Native Modals Support in HTML 6

The dialog element is on its way with HTML6. This element is considered equivalent to JavaScript-powered modal windows.

Dialog elements are already standardized, but only a few browsers like Chrome and Samsung Internet browsers have full support. No worries, it would be working in all browsers soon.

This element, in its default format, would only show hover above the place it was placed.

To use a more common modal-like interface, you can open the modal method through JavaScript.

<dialog>
  <form method="dialog">
    <input type="submit" value="Ok" />
    <input type="submit" value="Cancel" />
  </form>
</dialog>

In default form, the element creates a grey background with non-interactive content below it.

A method attribute can be used in the forms inside the dialog element. This would submit the value and pass the value back to the dialog object itself.

Overall, this dialog element is beneficial in a small interaction with the user and enhancing UI.

You can toggle the open attribute to open it and close it in the standard HTML form.

<dialog open>
  <p>Dialog Box Built with HTML 6</p>
</dialog>

Freedom to Resize Image

Experts believe that an update is on its way that would enable browsers to resize the image for the best viewing experience.

Browsers face difficulties to show the best image size concerning device and window size.

Src and IMG tags are not much powerful to handle this problem. A new tag <srcset> might be available.

This tag could facilitate browser to choose between more than one image to show the best viewing.

HTML 6 Dedicated Libraries

Introducing cachable libraries in HTML6 will be a step towards improving the productivity of both web designers and users.

Annotations for images and videos

It would be great if we could annotate images and videos in HTML. HTML5 provides us with the capability to interpret words, sentences, and paragraphs but not images and videos.

Many organizations in the field have offered solutions, and it looks like WHATWG would consider at least some of them.

Let’s hope; we will be annotating images and videos in the HTML soon.

Authentication enhancement

Although HTML5 is not bad in terms of security. Browsers and web technologies also provide reasonable protection. No doubt, there is much more that could be done in the domain of authentication and security.

Keys can be stored off-site; this would prevent access by unwanted people and bolster authentication. Using embedded keys instead of cookies, making digital signature better, etc.

People and think-tanks have a lot of solutions to offer, its all on WHATWG to accept or reject them.

Customized Menus in HTML6

The UI and OL tags are beneficial but do not fit well in every need. A tag or menu tag that could handle interactive elements better is the need of the hour.

The menu could handle list elements triggered by buttons inside the menu.

<menu type="toolbar">
  <li><button>Cut</button></li>
  <li><button>Copy</button></li>
  <li><button>Paste</button></li>
</menu>

The menu could enhance the capabilities of the list in HTML, and it could work well, even like a usual list.

HTML6 Integrated Camera

HTML6 would enable us to use the camera and media on our device for the best. We would be able to control the camera, its effects, modes, panoramic images, HDR, and other things.

We could use any media and repurpose it. There are a lot of things that could be made better with the camera and HTML6.

Good Microformats

A lot of times, we need to define our general information on the internet.
General information could be anything public like our phone number, name, address, etc. Microformats are the standards capable of defining general data.

Microformats can enhance a designer’s capabilities and can reduce the search engine’s efforts needed to deduce our public information.

Single-Page Apps without Javascript

Bobby Mozumder, Editor-in-Chief of FutureClaw Magazine suggests:

linking anchor elements to JSON/XML, API endpoints, having the browser internally load the data into a new data structure, and the browser then replaces DOM elements with whatever data that was loaded as needed. The initial data (as well as standard error responses) could be in header fixtures, which could be replaced later if desired.

According to him, this is the single page app web design pattern that would improve responsiveness and loading times as there would be no need to load javascript.

Conclusion

Nothing is perfect nor HTML, so there is a lot of things that could be done with HTML specification to make it better.

Standardizing some useful norms should be done to enhance the powers of HTML. Small changes have already started rolling out.

Considering what tech experts have to say and also listening to the general public could provide an idea.

Enhancing Bluetooth support, p2p file transfer, malware protection, cloud storage integration, are some things that should be considered in the next version of HTML.

This is for the future. However, there are already some updates that have been introduced, and some are most likely to be announced soon, while others are mere predictions.

I hope this article helps you get an insight into HTML6. Thanks for reading and share it with other tech-geeks and HTML-nerds.

#html #css #web-development #html6

Alisha  Larkin

Alisha Larkin

1648940400

Refactoru Html6: Wk4 Exercise HTML6 - Bootstrap Practice

refactoru-html6

Wk4 Exercise HTML6: Bootstrap Practice

Objective Using bootstrap, build some of their example templates without looking at the source of the template. Try to recreate each one listed below as closely as possible.

Skills HTML Bootstrap Resources Bootstrap Bootstrap Example Templates

Requirements

Responsive Alert: Make sure that each of your builds matches the responsiveness of the example!

Build the "Jumbotron" example.

Build the "Justified Nav" example.

Note that the actual styling of the navbar (the gradient, borders, etc) is defined in a non-bootstrap stylesheet. Don't worry about the visual appearance as long as they are side-by-side!

Build the "Carousel" example.


Author: armigermama
Source Code: https://github.com/armigermama/refactoru-html6
License: 

#html6 #html 

Alisha  Larkin

Alisha Larkin

1648926000

Nml Polyfill: Pollyfill for Html6-like Code.

#HTML6 polyfill Beta! Ready for download!

How to install

  1. Clone the repository
  2. Put your files into the content folder
  3. Instead of linking your nml files directly, use index.xhtml?p=content/mypage.nml
  4. Read the original Oscar Godson's spec. Not all of the features are supported. Yet.

What's different

  1. All the HTML tags are prefixed by <html:
  2. Single tags have to be closed with />
  3. Images, sounds and video are represented by <html:media />
  4. Scripts are imported using <html:link rel=script href=... />
  5. In css use [data-nml-tag="foo"] for selecting <foo> element (will be fixed in the future)
  6. In your styles use @namespace at-rule
  7. You can make your custom elements with custom attributes with whatever value
  • Note there can't be more elements with the same value of the id attribute, only the first elements value will be accepted

Author: trash-repos
Source Code: https://github.com/trash-repos/nml-polyfill
License: 

#html 

최  호민

최 호민

1656154562

ECMAScript 2022 (ES2022 / ES13) 새로운 기능 / 향상된 기능

Ecma 총회에서 승인한 ECMAScript 2022 / ES2022. 이 튜토리얼은 순전히 코드 샘플에서 JavaScript ES2022의 향상된 기능을 확인하는 데 도움이 될 것입니다.

Ecma 총회에서 승인한 ES2022. 13번째 에디션인 ECMAScript 2022는 top-level 을 도입 await하여 키워드를 모듈의 최상위 수준에서 사용할 수 있게 했습니다. 새로운 클래스 요소: 공개 및 비공개 인스턴스 필드, 공개 및 비공개 정적 필드, 비공개 인스턴스 메서드 및 접근자, 비공개 정적 메서드 및 접근자 클래스 내부의 정적 블록, 클래스별 평가 초기화 수행 개체에 개인 필드가 있는지 테스트 하는 #x in obj구문입니다. /d일치하는 하위 문자열에 대한 시작 및 종료 인덱스를 제공 하는 플래그를 통한 정규식 일치 인덱스 ; 오류의 인과 관계를 기록하는 데 사용할 수 있는 개체 의 cause속성 Error상대 인덱싱을 허용 하는 atStrings, Arrays 및 TypedArrays용 메서드. 그리고Object.hasOwn, 편리한 대안 Object.prototype.hasOwnProperty.

  • 내장 인덱서블의 .at() 메서드
  • RegExp 일치 색인
  • Object.hasOwn
  • 오류 원인
  • 최상위 대기
  • 클래스 필드 선언
  • 개인 필드에 대한 인체 공학적 브랜드 확인

내장 인덱서블의 .at() 메서드

내장 인덱서블의 .at 메소드 📕 .

const cart = ['🍎', '🍌', '🍍'];

// first element
cart.at(0); // '🍎'

// last element
cart.at(-1); // '🍍'

// out of bounds
cart.at(-100); // undefined 
cart.at(100); // undefined 
const int8 = new Int8Array([0, 10, 42, -10]);

// first element 
int8.at(0); // 0

// last element
int8.at(-1); // -10

// out of bounds
int8.at(-100) // undefined 
int8.at(100) // undefined
const sentence = 'This is a sample sentence'

// first element 
sentence.at(0); // 'T'

// last element
sentence.at(-1); // 'e'

// out of bounds
sentence.at(-100) // undefined
sentence.at(100) // undefined

RegExp 일치 색인

캡처된 부분 문자열의 시작 및 끝 인덱스에 대한 추가 정보 📕

/(?<xs>x+)(?<ys>y+)/.exec('xxxyyxx');
/*[
  'xxxyy',
  'xxx',
  'yy',
  index: 0,
  input: 'xxxyyxx',
  groups: [Object: null prototype] { xs: 'xxx', ys: 'yy' }
]*/
let input = "abcd";
let match = /b(c)/.exec(input);
let indices = match.indices;

// `indices` has the same length as match
indices.length === match.length

// The first element of `indices` contains the start/end indices of the match
indices[0]; // [1, 3];
input.slice(indices[0][0], indices[0][1]); // same as match[0]

// The second element of `indices` contains the start/end indices of the first capture
indices[1]; // [2, 3];
input.slice(indices[1][0], indices[1][1]); // same as match[1]);

Object.hasOwn

Object.hasOwn 📕

let books = {}
books.prop = 'exists';

// `hasOwn` will only return true for direct properties:
Object.hasOwn(books, 'prop');             // returns true
Object.hasOwn(books, 'toString');         // returns false
Object.hasOwn(books, 'hasOwnProperty');   // returns false

// The `in` operator will return true for direct or inherited properties:
'prop' in books;                          // returns true
'toString' in books;                      // returns true
'hasOwnProperty' in books;                // returns true

오류 원인

오류의 원인을 나타내는 원인 속성입니다. 📕

const actual = new Error('a better error!', { cause: 'Error cause' });

actual instanceof Error; // true
actual.cause; // 'Error cause'
try {
  maybeWorks();
} catch (err) {
  throw new Error('maybeWorks failed!', { cause: err });
}

최상위 대기

모듈의 비동기 함수 외부에서 기다 립니다 📕

// say this is index.mjs

// fails
await Promise.resolve('🍎');
// → SyntaxError: await is only valid in async function

// fix with wrapping
(async function() {
  await Promise.resolve('🍎');
  // → 🎉
}());

// to top-level await
await Promise.resolve('🍎') // '🍎'
const i18n = await import(`./content-${language}.mjs`);

클래스 필드 선언

공개 필드와 비공개 필드의 직교 정보 조합. 📕

class SampleClass {
    /*
      instead of:
      constructor() { this.publicID = 42; }
    */
    publicID = 42; // public field

    /*
      instead of:
      static get staticPublicField() { return -1 }
    */
    static staticPublicField = -1;

    // static private field
    static #staticPrivateField = 'private';

    //private methods
    #privateMethod() {}

    // static block
    static {
      // executed when the class is created
    }
}

개인 필드에 대한 인체 공학적 브랜드 확인

예외 없이 브랜드 확인. 📕

class C {
  #brand;

  #method() {}

  get #getter() {}

  static isC(obj) {
    // in keyword to check
    return #brand in obj && #method in obj && #getter in obj;
  }
}

#javascript #es2022 #es13