microsoft / microsoft/BotFramework-WebChat

Detect compatMode and give warnings

Open
#3,005 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-docs backlog feature-request
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Feature Request

Web Chat layout don't works in quirk mode. Adaptive Cards also didn't work well in quirk mode. The page hosting Web Chat must have <!DOCTYPE html> on.

We could give warnings to developers when they are hosting Web Chat in quirk mode.

To detect:

document.compatMode === 'CSS1Compat'; // this is good
document.compatMode === 'BackCompat'; // this is bad

Bugs related to quirk mode

Safari

In macOS Catalina (10.15.1) and Safari 13.0.3 (15608.3.10.1.4). When the page is rendered in quirks mode, the transcript will be hidden by the send box.

Adaptive Cards

#1493

image

[Enhancement]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by locating the browser entry point and existing warning or environment-detection tests; use document.compatMode as the starting point. Done means developers receive a warning for BackCompat pages while CSS1Compat pages remain unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.